import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import uView from '@/uni_modules/uview-ui'
import '@/util/request.js'
Vue.config.productionTip = false
/*#ifdef H5*/
import wechat from '@/util/wechat-sdk.js'
Object.assign(Vue.prototype, {
	'$wechat':wechat
})
/*#endif*/
Vue.use(uView)
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
if (process.env.NODE_ENV !== 'production') {
	console.log = () => {} //开发环境去除看一下效果
} else {
	//正式环境去除
	console.log = () => {}
}
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
